package com.gao.mq.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 下单处理
 */
@Service
public class OrdersService {

    Logger logger = LoggerFactory.getLogger(OrdersService.class);

    public boolean createOrders() {
        try {
            logger.info("模拟订单创建。。。");
            Thread.sleep(3000);
            logger.info("订单创建成功!");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return true;
    }
}
